package com.efast.dmom.equipment.service.repair;

import java.util.List;

import com.efast.dmom.equipment.bean.repair.EquipPartBean;
import com.efast.dmom.equipment.bean.repair.EquipRepairOrderBean;
import com.efast.dmom.equipment.bean.repair.EquipRepairOrderDetailsBean;
import com.efast.dmom.equipment.bean.repair.EquipRepairOrderRequestBean;
import com.efast.dmom.equipment.bean.repair.EquipRepairOrderReturnBean;
import com.efast.dmom.equipment.bean.repair.EquipRepairerBean;
import com.efast.dmom.equipment.bean.repair.EquipSpareBean;
import com.efast.dmom.equipment.entity.EquipRepairInfo;
import com.efast.dmom.equipment.entity.EquipSpareConsumption;

/**
 *
 * 保修单服务接口
 * 
 * @Author zhangchenghao
 * @Date 2019-08-15
 */
public interface IEquipRepairOrderService {

	/**
	 * 保存维修信息
	 * 
	 * @param repairInfo
	 */
	public void saveRepairInfo(List<EquipRepairInfo> repairInfo);

	/**
	 * 保存维修备件信息
	 * 
	 * @param spareConsumption
	 */
	public void saveRepairSpare(List<EquipSpareConsumption> spareConsumption);

	public void deleteRepairOrder(Integer id);

	/**
	 * 编辑维修单下面的维修信息和备件信息
	 * 
	 * @param bean
	 */
	public void editRepairOrderDetail(EquipRepairOrderDetailsBean bean);

	public List<EquipRepairerBean> getUserByGroupName(String groupName);

	public EquipRepairOrderReturnBean getRepairOrderByStatus(EquipRepairOrderRequestBean requestBean);
	
	public EquipRepairOrderBean getRepairOrderDetails(Integer orderId);
	
	public void saveRepairOrder(EquipRepairOrderBean orderBean);

	public void updateRepairOrderStatus(Integer orderId, String status);
	
	public List<EquipSpareBean> getEquipSpare(String part);
	
	public List<EquipPartBean> getEquipPart(String category);
	
	public void updateSpareInventory(String spareName, Integer count);
}
